package com.hh.storeArea1.Vo;

import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author Hanh
 * @date 2023/8/18 17:01s
 */
@Data
public class AddForWebVo2 {

    //库房编码
    @NotBlank(message = "库房编码不能为空！")
    private String roomCode;

    //库区属性
    @NotBlank(message = "库区编码不能为空！")
    private String code;

    //库区名称
    @NotBlank(message = "库区名称不能为空！")
    private String name;

    //库区描述
    private String remark;

    //库区状态
    private Boolean status;

    //对应vip属性
    @NotNull(message = "vip属性不能为空")
    private Boolean vip;

    //对应wms属性
    @NotNull(message = "wms属性不能为空")
    private Boolean wms;

    //对应manage属性
    @NotNull(message = "manage属性不能为空")
    private Boolean manage;

    //接收业务属性
    @Valid
    @NotEmpty(message = "至少选择1个业务属性")
    private List<AttributeForWebVo> attribute;



}
